package com.twu.biblioteca;


public class User
{
    private String password;
    private String email;
    private String username;
    private String phone;

    public User(String username, String password, String email, String phone)
    {
        this.username = username;
        this.email = email;
        this.phone = phone;
        this.password = password;
    }

    public String getUsername()
    {
        return username;
    }

    public String getEmail()
    {
        return email;
    }

    public String getPhone()
    {
        return phone;
    }

    public Boolean valid(String userName, String password)
    {
        return this.username.equals(userName) && this.password.equals(password);
    }
}
